package com.lzw.mall.admin.mapper;

import com.lzw.mall.admin.entity.Menu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lzw.mall.admin.vo.MenuVO;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lizhenwei
 * @since 2023-03-17
 */
public interface MenuMapper extends BaseMapper<Menu> {

    @Select("select * from menu order by menu_sequence")
    List<Menu> selectList01();

    @Select("select * from menu where menu_parent_id=#{id}")
    List<Menu> selectByParentId(Integer id);

    List<MenuVO> menuInfo();
}
